package xiao_jin.fantastic_journey.core.common.effect;

import net.minecraft.entity.attribute.EntityAttributeModifier;
import net.minecraft.entity.attribute.EntityAttributes;
import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.entity.effect.StatusEffectCategory;
import net.minecraft.util.Identifier;
import xiao_jin.fantastic_journey.FantasticJourney;

import java.awt.*;

public class Osteoporosis extends StatusEffect {
    public Osteoporosis() {
        super(StatusEffectCategory.HARMFUL, new Color(0xF7F4F0).getRGB());

        this.addAttributeModifier(EntityAttributes.GENERIC_MOVEMENT_SPEED, Identifier.of(FantasticJourney.MOD_ID, "effect.osteoporosis"), -0.5, EntityAttributeModifier.Operation.ADD_MULTIPLIED_TOTAL);
        this.addAttributeModifier(EntityAttributes.GENERIC_ATTACK_DAMAGE, Identifier.of(FantasticJourney.MOD_ID, "effect.osteoporosis"), -0.1, EntityAttributeModifier.Operation.ADD_MULTIPLIED_TOTAL);
    }
}
